package org.holynite.fieldmanage.Utils

import javax.ejb.ApplicationException

/**
 * Created by midnite on 15/1/7.
 */
@ApplicationException(rollback = true)
class SecurityException extends Exception {
	int exceptionCode
	String exceptionMessage

	SecurityException() {
		super()
	}

	SecurityException(int exceptionCode, String exceptionMessage) {
		super(exceptionMessage)
		this.exceptionCode = exceptionCode
		this.exceptionMessage = exceptionMessage
	}

	void setExceptionMessage(String exceptionMessage) {
		this.exceptionMessage = exceptionMessage
		super.message = exceptionMessage
	}
}
